package com.lms.logisticsmanagementsystem.mapper;

import com.lms.logisticsmanagementsystem.model.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface CustomerMapper {
    Integer addCustomerInfo(Customer customer);

    List<Customer> getCustomerInfo();

    Customer getCustomerInfoById(@Param("id") Integer id);

    Integer submitEditedCustomerInfo(Customer customer);

    Integer delCustomerInfoById(@Param("id") Integer id);

    String getCustomerNameById(@Param("cusPhone")String cusPhone);
}
